package cn.cqs.shiro;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.CredentialsMatcher;

public class TryPasswordCount implements CredentialsMatcher{
    @Override
    public boolean doCredentialsMatch(AuthenticationToken authenticationToken, AuthenticationInfo authenticationInfo) {
      String username= (String) authenticationToken.getPrincipal();
//重试次数
//        Element element = passwordRetryCache.get(username);
        return false;
    }
}
